function validate(){
	var no=$($$('no'));
	var pwd=$($$('password'));
	var msg=$('#msg');
	if(no.val()!=null&&no.val()!=""&&pwd.val()!=null&&pwd.val()!="")return true;
	msg.html("<span>请输入您的账户名和密码!</span>");
	return false;
}

function chkemp(){
	alert("false");
	return false;
}

function chkadmin(){
	alert("false");
	return false;
}

function chkno(){
	var no=$($$('no'));
		if(no.val()==null||no.val()=="")
			no.addClass("error");
	    else 
	    	no.removeClass("error");
}

function chkpwd(){
	var pwd=$($$('password'));
		if(pwd.val()==null||pwd.val()=="")
			pwd.addClass("error");
	    else 
	    	pwd.removeClass("error");
}

function $$(name){
	return document.getElementsByName(name)[0];
}